package com.chudian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chudian.entity.OrderInfo;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderInfoByProductId(Long productId,String paymentType);

    void saveCodeUrl(String orderNo,String codeUrl);

    List<OrderInfo> getOrderInfoByCreatetimeDesc();

    void updateOrderStatusByOrderno(String orderNo, String orderStatus);

    String getOrderState(String orderNo);

    List<OrderInfo> queryNoPayOrderDuration(int minutes,String paymentType);

    OrderInfo getOrderInfoByOrderNo(String orderNo);
}
